package al.work.httplisten.aop;

import java.lang.reflect.Method;

/**
 * @author JiuZh
 */
public class JoinPointImpl implements JoinPoint {
    private Method method;
    private Object[] args;
    private Object target;

    public JoinPointImpl(Object target, Method method, Object[] args) {
        this.method = method;
        this.args = args;
        this.target = target;
    }

    @Override
    public Object[] getArgs() {
        return args;
    }

    @Override
    public Method getMethod() {
        return method;
    }

    @Override
    public Object getTarget() { return target; }
}
